export interface InputProps {
    type?: string;
    modelValue: string | number;
    size?: 'large' | 'small';
    disabled?: boolean;
    clearable?: boolean;
    showPassword?: boolean;
    placeholder?: string;
    readonly?: boolean;
    autocomplete?: string;
    autofocus?: boolean;
    form?: string;
    validateEvent?: boolean;
  }
  export interface InputEmits {
    (e: 'update:modelValue', value: string | number) : void;
    // input 的 input事件指的是值有变化就算    
    (e: 'input', value: string | number): void;
    // input 的 change事件指的是修改了值，并且失去了 focus
    (e: 'change', value: string | number): void;
    (e: 'focus', value: FocusEvent): void;
    (e: 'blur', value: FocusEvent): void;
    (e: 'clear'): void;
  }
  
  export interface InputInstance {
    ref: HTMLInputElement | HTMLTextAreaElement;
  }